<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

${subscriber.username}
${subscriber.firstname} ${subscriber.lastname}

<table class="table">
  
    <tr>
      <td>#</td>
      <td>Telephone Number</td>
      <td>Balance</td>
      <td>Block</td>
    </tr>
    
    <c:set var="count" value="0" scope="page" />
    
    <c:forEach var="account" items="${subscriberAccounts}">
      <c:set var="count" value="${count + 1}" scope="page" />
      
      <tr>
      	<td>${count}</td>
      	<td>+${account.telephoneNumber.countryCode}-${account.telephoneNumber.operatorCode}-${account.telephoneNumber.number}</td>
      	<td>${account.balance}</td>
      	<td><a href="<c:url value="/administrator/subscribers/${account.id}/block"/>">Block</a></td>
      </tr>
      
    </c:forEach>   
  </table> 